package com.wj.domain.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @description 书籍缓存
 * @author wj
 * @date 2022-02-14
 */
@Entity
@Table(name="book_cache")
public class BookCacheEntity {

    /**
    * 主键
    */
    private Long id;

    /**
    * 书籍id
    */
    private Long bookId;

    private String bookName;

    /**
    * 章节id
    */
    private Long chapterId;

    /**
    * 章节标题
    */
    private String chapterTitle;

    /**
    * 缓存时间
    */
    private Date cacheTime;

    /**
    * 绝对路径
    */
    private String absolutePath;

    /**
    * 相对路径
    */
    private String relativePath;

    @Id
    @Column(name="id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name="book_id")
    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    @Column(name="book_name")
    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    @Column(name="chapter_id")
    public Long getChapterId() {
        return chapterId;
    }

    public void setChapterId(Long chapterId) {
        this.chapterId = chapterId;
    }

    @Column(name="chapter_title")
    public String getChapterTitle() {
        return chapterTitle;
    }

    public void setChapterTitle(String chapterTitle) {
        this.chapterTitle = chapterTitle;
    }

    @Column(name="cache_time")
    public Date getCacheTime() {
        return cacheTime;
    }

    public void setCacheTime(Date cacheTime) {
        this.cacheTime = cacheTime;
    }

    @Column(name="absolute_path")
    public String getAbsolutePath() {
        return absolutePath;
    }

    public void setAbsolutePath(String absolutePath) {
        this.absolutePath = absolutePath;
    }

    @Column(name="relative_path")
    public String getRelativePath() {
        return relativePath;
    }

    public void setRelativePath(String relativePath) {
        this.relativePath = relativePath;
    }


}